# near model CODE resource # jump table entries: 432-432 (1 of them) export_54: 00000000 4E56 FEDE link A6, -0x0122 00000004 48E7 0318 movem.l -[A7], D6,D7,A3,A4 00000008 42A7 clr.l -[A7] 0000000A A924 syscall FrontWindow 0000000C 285F movea.l A4, [A7]+ 0000000E 200C move.l D0, A4 00000010 6714 beq +0x16 /* 00000026 */ label00000012: 00000012 4A6C 006C tst.w [A4 + 0x6C] 00000016 6C06 bge +0x8 /* 0000001E */ 00000018 3F2C 006C move.w -[A7], [A4 + 0x6C] 0000001C A9B7 syscall CloseDeskAcc label0000001E: 0000001E 286C 0090 movea.l A4, [A4 + 0x90] 00000022 200C move.l D0, A4 00000024 66EC bne -0x12 /* 00000012 */ label00000026: 00000026 486E FEFE pea.l [A6 - 0x102] 0000002A 486E FEE6 pea.l [A6 - 0x11A] 0000002E 486E FEE2 pea.l [A6 - 0x11E] 00000032 A9F5 syscall GetAppParms 00000034 3F2E FEE6 move.w -[A7], [A6 - 0x11A] 00000038 A999 syscall UpdateResFile 0000003A 207C 0000 0210 movea.l A0, 0x210 00000040 3E10 move.w D7, [A0] 00000042 BE6D FF06 cmp.w D7, [A5 - 0xFA] 00000046 6740 beq +0x42 /* 00000088 */ 00000048 4267 clr.w -[A7] 0000004A 487A 005E pea.l [PC + 0x5E /* 000000AA, value 0x6537973, pstring "System" */] 0000004E 3F2D FF06 move.w -[A7], [A5 - 0xFA] 00000052 486E FEE8 pea.l [A6 - 0x118] 00000056 4EAD 008A jsr [A5 + 0x8A /* export_13 */] 0000005A 3C1F move.w D6, [A7]+ 0000005C 4A46 tst.w D6 0000005E 6628 bne +0x2A /* 00000088 */ 00000060 41EE FEE8 lea.l A0, [A6 - 0x118] 00000064 43FA 0040 lea.l A1, [PC + 0x40 /* 000000A6, value 0x5A535953 'ZSYS' */] 00000068 7003 moveq.l D0, 0x03 label0000006A: 0000006A B109 cmpm.b [A0]+, [A1]+ 0000006C 56C8 FFFC dbne D0, -0x6 /* 0000006A */ 00000070 6616 bne +0x18 /* 00000088 */ 00000072 41EE FEEC lea.l A0, [A6 - 0x114] 00000076 43FA 002A lea.l A1, [PC + 0x2A /* 000000A2, value 0x4D414353 'MACS' */] 0000007A 7003 moveq.l D0, 0x03 label0000007C: 0000007C B109 cmpm.b [A0]+, [A1]+ 0000007E 56C8 FFFC dbne D0, -0x6 /* 0000007C */ 00000082 6604 bne +0x6 /* 00000088 */ 00000084 3E2D FF06 move.w D7, [A5 - 0xFA] label00000088: 00000088 41ED FF0A lea.l A0, [A5 - 0xF6] 0000008C 2648 movea.l A3, A0 0000008E 3F07 move.w -[A7], D7 00000090 3F2D FF06 move.w -[A7], [A5 - 0xFA] 00000094 2F0B move.l -[A7], A3 00000096 4EBA 00FA jsr [PC + 0xFA /* 00000192 */] 0000009A 4CDF 18C0 movem.l D6,D7,A3,A4, [A7]+ 0000009E 4E5E unlink A6 000000A0 4E75 rts 000000A2 4D41 chk.w D6, D1 000000A4 4353 chk.w D1, [A3] 000000A6 5A53 addq.w [A3], 5 000000A8 5953 subq.w [A3], 4 000000AA 0653 7973 addi.w [A3], 0x7973 /* 'ys' */ 000000AE 7465 moveq.l D2, 0x65 000000B0 6D00 4E56 blt +0x4E58 /* 00004F08 */ // begin alternate branch 000000B2-000000B6 fn000000B2: 000000B2 4E56 FFB0 link A6, -0x0050 // end alternate branch 000000B2-000000B6 fn000000B2: // (misaligned) 000000B4 FFB0 .invalid <> 000000B6 48E7 0038 movem.l -[A7], A2,A3,A4 000000BA 142E 0008 move.b D2, [A6 + 0x8] label000000BE: 000000BE 2878 0358 movea.l A4, [0x00000358] 000000C2 41EE FFB0 lea.l A0, [A6 - 0x50] 000000C6 42A8 0012 clr.l [A0 + 0x12] label000000CA: 000000CA 316C 004E 0016 move.w [A0 + 0x16], [A4 + 0x4E] 000000D0 4A6C 0048 tst.w [A4 + 0x48] 000000D4 660E bne +0x10 /* 000000E4 */ 000000D6 4A6C 004A tst.w [A4 + 0x4A] 000000DA 6B08 bmi +0xA /* 000000E4 */ 000000DC 4A02 tst.b D2 000000DE 6706 beq +0x8 /* 000000E6 */ 000000E0 A00E syscall UnmountVol/HUnmountVol 000000E2 60DA bra -0x24 /* 000000BE */ label000000E4: 000000E4 A013 syscall FlushVol label000000E6: 000000E6 2854 movea.l A4, [A4] 000000E8 200C move.l D0, A4 000000EA 66DE bne -0x20 /* 000000CA */ 000000EC 4CDF 1C00 movem.l A2,A3,A4, [A7]+ 000000F0 4E5E unlink A6 000000F2 205F movea.l A0, [A7]+ 000000F4 544F addq.w A7, 2 000000F6 4ED0 jmp [A0] fn000000F8: 000000F8 4E56 FEB0 link A6, -0x0150 000000FC 41EE FFB0 lea.l A0, [A6 - 0x50] 00000100 43EE FEB0 lea.l A1, [A6 - 0x150] 00000104 316E 0008 0016 move.w [A0 + 0x16], [A6 + 0x8] 0000010A 2149 0012 move.l [A0 + 0x12], A1 0000010E 317C 0001 001C move.w [A0 + 0x1C], 0x1 00000114 A00C syscall GetFileInfo/PBHGetFInfo/HGetFileInfo 00000116 554F subq.w A7, 2 00000118 3F2E 0008 move.w -[A7], [A6 + 0x8] 0000011C 42A7 clr.l -[A7] 0000011E 42A7 clr.l -[A7] 00000120 610C bsr +0xE /* 0000012E */ 00000122 301F move.w D0, [A7]+ 00000124 4E5E unlink A6 00000126 205F movea.l A0, [A7]+ 00000128 544F addq.w A7, 2 0000012A 3E80 move.w [A7], D0 0000012C 4ED0 jmp [A0] fn0000012E: 0000012E 4E56 0000 link A6, 0 00000132 2F0A move.l -[A7], A2 00000134 45EE 0008 lea.l A2, [A6 + 0x8] 00000138 205A movea.l A0, [A2]+ 0000013A 225A movea.l A1, [A2]+ 0000013C 341A move.w D2, [A2]+ 0000013E 4251 clr.w [A1] 00000140 3002 move.w D0, D2 00000142 6A3E bpl +0x40 /* 00000182 */ 00000144 2478 0358 movea.l A2, [0x00000358] label00000148: 00000148 B46A 004E cmp.w D2, [A2 + 0x4E] 0000014C 6708 beq +0xA /* 00000156 */ 0000014E 2452 movea.l A2, [A2] 00000150 200A move.l D0, A2 00000152 66F4 bne -0xA /* 00000148 */ 00000154 602C bra +0x2E /* 00000182 */ label00000156: 00000156 322A 004A move.w D1, [A2 + 0x4A] 0000015A 302A 0048 move.w D0, [A2 + 0x48] 0000015E 6622 bne +0x24 /* 00000182 */ 00000160 3001 move.w D0, D1 00000162 4A41 tst.w D1 00000164 6B04 bmi +0x6 /* 0000016A */ 00000166 5211 addq.b [A1], 1 00000168 6002 bra +0x4 /* 0000016C */ label0000016A: 0000016A 4440 neg.w D0 label0000016C: 0000016C 2478 030A movea.l A2, [0x0000030A] label00000170: 00000170 B06A 0006 cmp.w D0, [A2 + 0x6] 00000174 6708 beq +0xA /* 0000017E */ 00000176 2452 movea.l A2, [A2] 00000178 200A move.l D0, A2 0000017A 66F4 bne -0xA /* 00000170 */ 0000017C 6004 bra +0x6 /* 00000182 */ label0000017E: 0000017E 322A 0008 move.w D1, [A2 + 0x8] label00000182: 00000182 3081 move.w [A0], D1 00000184 245F movea.l A2, [A7]+ 00000186 4E5E unlink A6 00000188 205F movea.l A0, [A7]+ 0000018A DEFC 000A add.w A7, 0xA /* '\n' */ 0000018E 3E80 move.w [A7], D0 00000190 4ED0 jmp [A0] fn00000192: 00000192 4E56 FF4C link A6, -0x00B4 00000196 594F subq.w A7, 4 00000198 2F3C 434F 4445 move.l -[A7], 0x434F4445 /* 'CODE' */ 0000019E 3F3C 0001 move.w -[A7], 0x1 000001A2 A9A0 syscall GetResource 000001A4 A992 syscall DetachResource 000001A6 594F subq.w A7, 4 000001A8 A9FB syscall LoadScrap/LodeScrap 000001AA 584F addq.w A7, 4 000001AC 362E 000E move.w D3, [A6 + 0xE] 000001B0 B678 0210 cmp.w D3, [0x00000210 /* BootDrive */] 000001B4 6732 beq +0x34 /* 000001E8 */ 000001B6 554F subq.w A7, 2 000001B8 3F03 move.w -[A7], D3 000001BA 6100 FF3C bsr -0xC2 /* 000000F8 */ 000001BE 544F addq.w A7, 2 000001C0 41EE FFB0 lea.l A0, [A6 - 0x50] 000001C4 3143 0016 move.w [A0 + 0x16], D3 000001C8 42A8 0012 clr.l [A0 + 0x12] 000001CC A015 syscall SetVol/PBHSetVol/HSetVol 000001CE 4267 clr.w -[A7] 000001D0 A99A syscall CloseResFile 000001D2 50E7 st -[A7] 000001D4 6100 FEDC bsr -0x122 /* 000000B2 */ 000001D8 42B8 0AF2 clr.l [0x00000AF2 /* ResErrProc */] 000001DC 554F subq.w A7, 2 000001DE A995 syscall InitResources 000001E0 544F addq.w A7, 2 000001E2 A8FE syscall InitFonts 000001E4 31C3 0210 move.w [0x00000210 /* BootDrive */], D3 label000001E8: 000001E8 41EE FFB0 lea.l A0, [A6 - 0x50] 000001EC 316E 000C 0016 move.w [A0 + 0x16], [A6 + 0xC] 000001F2 42A8 0012 clr.l [A0 + 0x12] 000001F6 A015 syscall SetVol/PBHSetVol/HSetVol 000001F8 226E 0008 movea.l A1, [A6 + 0x8] 000001FC 2089 move.l [A0], A1 000001FE 4268 0004 clr.w [A0 + 0x4] 00000202 A9F2 syscall Launch/LaunchApplication 00000204 A9B2 syscall SystemEvent